<?php defined( '_VALID_MOS' ) or die( 'Restricted access' );?>
<?php 
class jcsTable extends mosDBTable
{
  var $id = 0;
  var $name = '';
  var $days = 0;
  var $price = 0.00;
  var $description = '';
  var $published = 0;
  var $type_category = 0;
  var $category = '';
  var $params = '';
  var $grant_reg = 0;
  var $grant_new = 0;
  var $checked_out = 0;
  var $checked_out_time = NULL;
  var $granturl = 0;
  var $days_type = 'days';
  var $time_limit = 0;
  var $one_time = 0;
  var $alert_admin = 1;
  var $component = '';
  var $type_component = 0;
  var $type_user = 0;
  var $type_article = 0;
  var $adwords = '';
  var $ctime = NULL;
  var $discount = 0.00;
  var $invisible = 0;
  var $ordering = 0;
  var $catid = 0;
  var $finish_msg = '';
  var $gid = 0;
  var $usertype = 'Registered';
  var $data_fixed = 0;
	
  
  function jcsTable( &$db ) {
    $this->mosDBTable( '#__jcs_plans', 'id', $db );
  }
  function check() {
      if(!$this->ctime) $this->ctime = date('Y-m-d');
      
      return true;
  }
}
 ?>